-- GENERATED SPELL FOR [Darkcrest Slaver] --


function spell0_19946(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_19946', 30321, 1)
end

function Sorts_19946(pUnit, Event)
local choix_sorts_19946 = math.random(0, 0)
if choix_sorts_19946 == 0 then
pUnit:RegisterEvent('spell0_19946', 1, 1)
end
end

function mob19946_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19946', math.random(1500, 3000), 1)
end

function mob19946_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19946_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19946_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19946, 1, 'mob19946_Action')
RegisterUnitEvent(19946, 2, 'mob19946_Leave')
RegisterUnitEvent(19946, 3, 'mob19946_Kill')
RegisterUnitEvent(19946, 4, 'mob19946_Die')
